﻿using csharp_books_415.Data.Models;
using csharp_books_415.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace csharp_books_415.Adapters
{
    public interface IBooksAdapter
    {
        // READ - get all books
        List<Book> GetBooks();

        // READ - get a single book
        Book GetBook(int bid);

        //CREATE ...
        void AddBook(BookCreateVm nBook);

        // DELETE
        void DeleteBook(int bid);

        // UPDATE / SAVE CHANGES
        void SaveBook(BooksEditVm eVm);

    }
}
